home *** CD-ROM | disk | FTP | other *** search
- Path: grafix.xs4all.nl!john.hendrikx
- Date: Wed, 31 Jan 96 20:34:14 GMT+1
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- Subject: Re: Amiga doesn`t need Planar!
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
- Message-ID: <john.hendrikx.4apt@grafix.xs4all.nl>
- Organization: Grafix Attack BBS Holland
-
- In a message of 30 Jan 96 Michael Van Elst wrote to All:
-
- >> That's still a lot more work for a 7 bitplane screen, the only thing you
- >> don't need to do is the reads, still 7 writes though.
-
- MVE> Yes. But read further :)
-
- >> Wrong, I was talking about a cookie-cutted object, and for all you know
- >> it could have contained holes, or whatever. A full mask is required here.
-
- MVE> Again, you just need to read from the borders. You don't need to read
- MVE> where the mask would be a constant 1 and you don't need to read at all
- MVE> if your planar hardware supports a write mask in the way the average
- MVE> chunky system supports a (byte-)write mask.
-
- What if my object-mask looks like %01010101010101? You can't tell if the mask
- will be a constant 1, unless you hard-code this information with each object.
- For a paint-program which can pick up a brush and paste it somewhere else it
- has no way of knowing this, atleast not at an acceptable overhead.
-
- >> If you take into account the extra effort required to make good use of a
- >> deep planar display then dedicated hardware is likely to reflect upon
- >> this. In other words it will be more complex, need more memory accesses
- >> and in general it will be slower than chunky hardware at higher costs.
-
- MVE> It will be more expensive. Sure. Because you already have a CPU that
- MVE> can handle chunky. You need an extra one that handles planar. But if
- MVE> you already want to offload graphics to some render engine the cost (in
- MVE> terms of complexity) is about the same.
-
- What about the amount of memory accesses? You would need faster RAM, and RAM
- is usually the limiting factor when it comes to speed, and also often the
- biggest factor when it comes to the cost of the final product.
-
- >> The fact that the CPU is well equipped to handle Chunky display hardware
- >> is a huge advantage, as then the CPU can be used to implement tricks not
- >> directly supported in the hardware.
-
- MVE> Such as a multi-layer display ?
-
- Yes, this is pretty simple to implement as well at one extra memory access per
- pixel. Planar could do it faster, but at a much higher price (it means losing
- lots of colors). What I meant was the more popular effects like
- TextureMapping, drawing shaded polygons and so on. These are not commonly
- found on gfx-cards, and when they are games will likely have moved on to more
- spectacular effects. In the end it will always be the CPU which delivers you
- the newest effects.
-
- >> With planar you have to rely on the hardware, if it gets outdated or you
- >> want to do Gouraud shaded texturemapping instead of old-style plain
- >> texturemapping which was supported in the hardware then you're at a loss,
- >> and you'd have to resort to C2P and all that crap.
-
- MVE> This is just because you have some precedence for texturemapping.
-
- Not just me, texturemapping is simply popular because it makes things look more
- realistic and is within the range of our current processors. Planar offers
- some effects, but they are all childish in comparison and none of them enhance
- the speed of doing a realistic 3d environment.
-
- >> Yes, and I would have agreed with them a few years ago when 8-bit was
- >> still 'too slow' to be usefull. Now however even 24-bit screens zip along
- >> nicely.
-
- MVE> You mean they "zip along nicely" because they are chunky ? Or because
-
- No, they zip along nicely because they have got enough speed, and I do think
- that Chunky may have a great deal to do with that. What I meant was that there
- is no need to use low-bitplane Planar displays because even deep Chunky
- displays are incredibly fast. That kills one of the advantages of planar.
-
- MVE> you compare a 10 year old planar system with state-of-the-art hardware?
-
- I still believe that Planar hardware is a bad choice over Chunky hardware
- because I think that Planar just isn't suited for todays needs. The memory
- arrangement of a planar display doesn't give you much usefull advantages at
- all, and it also causes a lot of the often used operations like plotting a
- pixel (games) drawing a line (GUI's) or blitting a masked-object (Games, paint
- programs, gadget imagery, overlayed text, etcetera) to perform much slower.
-
- >> MVE> That's why it is popular.
-
- >> That's also why it is fast
-
- MVE> No.
-
- Yes it is, Chunky hardware performs the most popular operations much faster
- than Planar hardware could. With the most popular operations I mean things
- which are used for drawing a GUI and things now often seen in games.
-
- >> and easy to create new (not supported by the hardware directly) effects
- >> with it.
-
- MVE> Depends on the effects. You seem to focus just on effects that a
- MVE> standard CPU can do.
-
- No, I focus on the usefull effects. Doing effects which involve manipulating
- bitplanes seperately are just not as usefull, atleast not in today's world.
- We've outgrown Planar.
-
- >> See above, I was talking about (real-life) cookie cutted objects,
-
- MVE> ... which require as much reading as with a chunky blitter. No ? :)
- MVE> After all the memory bus is probably not pixel-sized, even for chunky.
-
- Planar has much more severe alignment (and thus more overhead) problems and
- needs to access memory (for a 16-bit object) at 16 different locations in
- memory, while with Chunky this is all located in close vicinity of each other,
- making optimisations like plotting LONGs instead of WORDs possible. Take an 8
- pixel wide and 8 bit deep object, one row could be plotted with Chunky in just
- 2 LONG writes. With planar you could do it with 8 BYTE writes. The number of
- accesses is very important for overal speed.
-
- The amount of bytes read is about the same (that is if you're object is a
- multiple of 8, 16 or 32 pixels wide depending on the memory-bus width), the
- amount of accesses is however much higher with Planar.
-
- >> MVE> That's the point. The CPU does not support planar displays. If all
- >> you MVE> have is the CPU then you want a chunky display.
-
- >> But what reason would anyone have to use planar? It requires extra
- >> hardware(!!), you limit the CPU as it can do
- >> -nothing- usefull at all when it comes to displaying graphics.
-
- MVE> Planar hardware has its own advantages. It surely requires extra
- MVE> hardware. But then it is popular to use extra hardware except for the
- MVE> clones that try to overcome every hardware limit just with increasing
- MVE> CPU power.
-
- Yes, and we with our brilliant planar hardware are stuck with those hardware
- limits as we can't upgrade our planar hardware without serious problems. We
- can upgrade our CPU's however but that doesn't do us much good.
-
- Grtz John
-
- -----------------------------------------------------------------------
- John.Hendrikx@grafix.xs4all.nl TextDemo/FastView/Etc... development
- -----------------------------------------------------------------------
- -- Via Xenolink 1.981, XenolinkUUCP 1.1
-